package demo;


class Array {
    Object[] object = new Object[3];

    public Object getObject(int pos) {
        return object[pos];
    }

    public void setObject(int pos, Object val) {
        object[pos] = val;
    }
}

public class Test {

    public static void main(String[] args) {
        Array array = new Array();
        array.setObject(0,89);
        System.out.println(array.getObject(0));
    }

}
